package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaPrincipal extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JButton btnsalir;
	private JButton btnentrar;
	private JLabel jLabel2;
	private JLabel jLabel1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaPrincipal inst = new VentanaPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaPrincipal() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setTitle("Inicio");
			getContentPane().setLayout(null);
			{
				jPanel1 = new JPanel();
				getContentPane().add(jPanel1, "Center");
				jPanel1.setLayout(null);
				jPanel1.setBounds(5, 0, 369, 204);
				jPanel1.setBackground(new java.awt.Color(255,255,255));
			//	jPanel1.setLayout(jPanel1Layout);
				{
					btnentrar = new JButton();
					jPanel1.add(btnentrar);
					btnentrar.setText("Entrar");
					btnentrar.setBounds(93, 69, 80, 22);
					btnentrar.setFont(new java.awt.Font("Bitstream Charter",1,14));
					btnentrar.setForeground(new java.awt.Color(0,0,0));
					btnentrar.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							btnentrarActionPerformed(evt);
						}
					});
				}
				{
					jLabel2 = new JLabel();
					jPanel1.add(jLabel2);
					jLabel2.setText("Diaz Ramon C.I: 19433850");
					jLabel2.setBounds(184, 126, 178, 15);
					jLabel2.setFont(new java.awt.Font("Bitstream Charter",1,14));
					jLabel2.setForeground(new java.awt.Color(0,0,255));
				}
				{
					jLabel5 = new JLabel();
					jPanel1.add(jLabel5);
					jLabel5.setText("Buscaminas");
					jLabel5.setBounds(121, 23, 113, 21);
					jLabel5.setFont(new java.awt.Font("Bitstream Charter",1,20));
					jLabel5.setForeground(new java.awt.Color(0,0,255));
				}
				{
					jLabel1 = new JLabel();
					jPanel1.add(jLabel1);
					jLabel1.setText("Integrantes");
					jLabel1.setBounds(278, 103, 84, 17);
					jLabel1.setFont(new java.awt.Font("Bitstream Charter",1,16));
					jLabel1.setForeground(new java.awt.Color(0,0,255));
				}
				{
					jLabel3 = new JLabel();
					jPanel1.add(jLabel3);
					jLabel3.setText("Sanchez Marivic C.I: 19432077");
					jLabel3.setBounds(159, 147, 203, 15);
					jLabel3.setFont(new java.awt.Font("Bitstream Charter",1,14));
					jLabel3.setForeground(new java.awt.Color(0,0,255));
				}
				{
					jLabel4 = new JLabel();
					jPanel1.add(jLabel4);
					jLabel4.setText("Valenzuela Isbeltamary C.I: 19344835");
					jLabel4.setBounds(109, 168, 253, 15);
					jLabel4.setFont(new java.awt.Font("Bitstream Charter",1,14));
					jLabel4.setForeground(new java.awt.Color(0,0,255));
				}
				{
					btnsalir = new JButton();
					jPanel1.add(btnsalir);
					btnsalir.setText("Salir");
					btnsalir.setBounds(190, 69, 71, 22);
					btnsalir.setForeground(new java.awt.Color(0,0,0));
					btnsalir.setFont(new java.awt.Font("Bitstream Charter",1,14));
					btnsalir.addActionListener(new ActionListener() {
						public void actionPerformed(ActionEvent evt) {
							btnsalirActionPerformed(evt);
						}
					});
				}
			}
			pack();
			this.setSize(369, 228);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	private void btnentrarActionPerformed(ActionEvent evt) {
		VentanaMenu vent = new VentanaMenu();
		vent.show();
		//System.out.println("btnentrar.actionPerformed, event="+evt);
		//TODO add your code for btnentrar.actionPerformed
	}
	
	private void btnsalirActionPerformed(ActionEvent evt) {
		System.exit(0);
		//System.out.println("btnsalir.actionPerformed, event="+evt);
		//TODO add your code for btnsalir.actionPerformed
	}

}
